import mediaoldrequest from '@/utils/media-old-request'
import mediarequest from '@/utils/media-request'

export function getMediaTYpe(data) {
  return mediarequest({
    url: '/mediatypes',
    method: 'get',
    params: data
  })
}

export function getTplData(data) {
  return mediarequest({
    url: '/mediatype/media/templates',
    method: 'get',
    params: data
  })
}

export function getSeriesTplData(data) {
  return mediarequest({
    url: '/mediatype/series/templates',
    method: 'get',
    params: data
  })
}

export function getTplAttrbutes(data) {
  return mediaoldrequest({
    url: '/mediatype/template/attribute/list',
    method: 'get',
    params: data
  })
}
